window.onload = function () {

    a = true;
    $("button").disabled = "false";
    $("#box").addEventListener("click", function () {
        console.log("#box")

        if (a === true) {
            $("button").style.backgroundColor = "#00a4ff";
            $("button").style.color = "#fff";
        a = false;
            add()
        }
        else {
            $("button").style.backgroundColor = "#f0f0f0";
            $("button").style.color = "#717070";


            a = true; add()
        }

    })
    let input = $(".cont li input")
    let div = $(".cont li div")

    input.forEach(function (v, i) {
        v.addEventListener("blur", function () {
            div.forEach(function (v) {
                v.classList.add("active")
            })
        })
    })



}